<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="../jquery-1.8.3.min.js"></script>
</head>
<body>
    <h1>JQ AJAX</h1>
    <button id="btn">加载</button>
    <hr>

    <div id="box"></div>

    <script>
        $('#btn').click(function(){
            $.ajax({
                url:'../php/1.php',
                type:'post',
                success : function (data) {
                    $('#box').append(data + '<br>');
                }
                
                error:function () {
                    alert('AJAX执行失败');
                }
            });
        });
    </script>
</body>
</html>